import React from 'react';
import {

} from 'react-native';

import BaseModelNew from './BaseModelNew';

export default class NoticeModel extends BaseModelNew {
  constructor(props) {
    super(props);
    this.saveUnreadNum = this.saveUnreadNum.bind(this);
    this.getUnreadNumByKey = this.getUnreadNumByKey.bind(this);
    this_unreadNumDic = {};
  }

  saveUnreadNum(key, num) {
    this_unreadNumDic[key] = num;
  }

  getUnreadNumByKey(key) {
    if(this_unreadNumDic[key]) {
        return this_unreadNumDic[key];
    }
    return 0;
  }
}
